<script language="javascript">
// JavaScript Document
function chkLoginform(){
	if($("username").value == "请输入账号"){
	   alert('请填写用户名!');
	   $("username").focus();
	   return(false);
   	}

	if($('password').value == "请输入密码"){
	   alert('请输入密码!');	   
	   $('password').focus();
	   return(false);
   } else {
	    var a = $('password').value;
		if (a.length==trim(a).length && trim(a).length<6 && trim(a).length>17){
		   alert('密码格式无效!');	   
		   $('password').focus();
		   return(false);
		}	   
   }  
   $('loginform').submit();  
}

</script>
<td valign="top">
{if empty($uid)}
<form name="loginform" id="loginform" action="{PHP_SELF}?m=login.check" method="post">
<table width="190" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="{$BASE_V}images/c_left-top.gif" width="190" /></td>
      </tr>
      <tr>
        <td background="{$BASE_V}images/c_leftbj.gif"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="65%" valign="top"><input name="username" type="text" class="input" id="username" onblur="if (value ==''){value='请输入账号'}" onclick="if(this.value=='请输入账号')this.value=''" value="请输入账号" /></td>
              <td width="35%" rowspan="2" align="right"><a style="cursor:pointer" onclick="chkLoginform()"><img src="{$BASE_V}images/c_login.gif" width="53" height="41" border="0" /></a></td>
            </tr>
            <tr>
              <td valign="bottom"><input name="password" type="password" class="input" id="password"/></td>
            </tr>
             
            <tr>
              <td height="25" colspan="2" align="center"><img src="{$BASE_V}images/c_line.gif" width="170" height="2" /></td>
            </tr>
            <tr>
              <td height="30" colspan="2"><!--<a href="#">找回密码</a> &nbsp; <img src="{$BASE_V}images/c_redline.gif" width="2" height="10" /> &nbsp;&nbsp; --><a href="{PHP_SELF}?m=user.reg">会员注册</a></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td><img src="{$BASE_V}images/c_left-bot.gif" width="190" /></td>
      </tr>
    </table>
</form>    

{else}
<table width="190" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="{$BASE_V}images/c_left-top.gif" width="190" /></td>
      </tr>
      <tr>
        <td background="{$BASE_V}images/c_leftbj.gif"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr><td>$username</td></tr>
            <tr><td><a href="{PHP_SELF}?m=user">进入会员博客中心</a></td></tr>            
            <tr><td><a href="{PHP_SELF}?m=user.addblog">发表新博客</a></td></tr>                        
            <tr><td><a href="{PHP_SELF}?m=login.out">注销/退出</a></td></tr>                                    
        </table></td>
      </tr>
      <tr>
        <td><img src="{$BASE_V}images/c_left-bot.gif" width="190" /></td>
      </tr>
    </table>
{/if}
    <table width="190" border="0" cellspacing="0" cellpadding="0" style="margin-top:15px">
      <tr>
        <td><img src="{$BASE_V}images/dt_top.gif" width="190" height="62" /></td>
      </tr>
      <tr>
        <td height="242" valign="top" background="{$BASE_V}images/dt-zhong.gif">
         $left_blog_ErrorMsg
         <!--{loop $left_blog_rs $k $v}-->        
        <table width="84%" border="0" align="center" cellpadding="0" cellspacing="0" style="line-height:100%; margin-bottom:10px">
          <tr>
            <td>·{$v[post_time]} {$v[username]}发表：</td>
          </tr>
          <tr>
            <td><a href="{PHP_SELF}?m=user.blogshow&id=$v[id]" target="_blank">$v[title]</a></td>
          </tr>
        </table>
        <!--{/loop}-->          
          </td>
      </tr>
      <tr>
        <td><img src="{$BASE_V}images/dt-bom.gif" width="190" height="24" /></td>
      </tr>
    </table>
      <table width="190" border="0" cellspacing="0" cellpadding="0" style="margin-top:15px">
        <tr>
          <td><a href="#"><img src="{$BASE_V}images/c_sihai.gif" width="190" height="332" border="0" /></a></td>
        </tr>
      </table></td> 